<!--
 * @Author: Low-key 1334637865@qq.com
 * @Date: 2023-08-05 16:52:07
 * @LastEditors: Low-key 1334637865@qq.com
 * @LastEditTime: 2023-08-05 17:30:28
 * @FilePath: \pig\template_h5\src\App.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div id="app">
    <keep-alive v-if="$route.meta.isKeepAlive">
      <router-view />
    </keep-alive>
    <router-view v-else />
  </div>
</template>

<script>
export default {
  name: "App",
  mounted() {
    console.log('111')
    console.log(this.$route)
    window.addEventListener('resize', function() {
      // alert('高度变化了')
      if (this.$route.path == '/home' || this.$route.path == '/menu' || this.$route.path == '/my') {
        location.reload()
      }
    })
  },  
};
</script>

<style lang="less">
#app {
  font-family: STHeiti, Microsoft-YaHei, NSimSun, Avenir, Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #303133;
  /* 禁止用户复制 */
  -webkit-user-select: none; /* Chrome all / Safari all */
  -moz-user-select: none; /* Firefox all */
  -khtml-user-select: none; /*早期浏览器*/
  -ms-user-select: none; /* IE 10+ */
  /* 以下两个属性目前并未支持，写在这里为了减少风险 */
  -o-user-select: none;
  user-select: none;
  font-size: 14px;
  background: rgba(250, 250, 250, 1);
  min-height: calc(100vh);

  .tag-info-box {
    display: flex;
    flex-wrap: wrap;

    .tag-info {
      line-height: 34px;
      height: 34px;
      background: #fff5e1;
      border-radius: 4px;
      border: 1px solid #FF6900;
      font-size: 22px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #FF6900;
      padding: 0 8px;
      margin-right: 20px;
      margin-bottom: 20px;
    }
  }
  .van-nav-bar--fixed {
    z-index: 99;
  }
}
div{
  box-sizing: border-box;
}
</style>
